/* 基本样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1, h2, h3 {
  margin-bottom: 20px;
  color: #2c3e50;
}

h1 {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

p {
  margin-bottom: 15px;
}

/* 导航和按钮 */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-link {
  background-color: transparent;
  color: #3498db;
}

.btn-link:hover {
  text-decoration: underline;
  background-color: transparent;
}

/* 内容区域 */
.content {
  margin: 30px 0;
}

.content h2 {
  margin-top: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.content ul, .content ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.content li {
  margin-bottom: 10px;
}

/* 演示框 */
.demo-box {
  background-color: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 15px;
  margin: 20px 0;
  border-radius: 0 4px 4px 0;
}

/* 表单样式 */
.form-container {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-footer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* 错误消息 */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #f5c6cb;
}

/* 个人资料和会话信息 */
.profile-info, .session-info {
  margin: 20px 0;
}

.info-box {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.info-box pre {
  background-color: #f1f1f1;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: Consolas, Monaco, 'Andale Mono', monospace;
  margin: 10px 0 20px;
}

.session-explanation {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}